<template>
  <div class="scatter">
    <div class="tip">{{$t('public.scatterTip1')}}</div>
    <div class="tip">{{$t('public.scatterTip2')}}</div>
    <div class="tip" v-if="$appName==='eosNewdex'">{{$t('wallet.shouquan', {chain: 'EOS'})}}</div>
    <div class="tip" v-if="$appName==='tronNewdex'">{{$t('wallet.shouquan', {chain: 'TRON'})}}</div>
    <div class="tip">{{$t('wallet.shouquan2')}}</div>
    <div class="tip blue hidden">{{$t('public.scatterTip3')}}</div>
    <div class="tip" style="margin-top: 4px;"><el-button class="btn" type="primary" @click="handleToWallet">{{$t('wallet.iknow')}}</el-button></div>
    <div class="what" style="text-align: right">
      <el-checkbox v-model="checkWallet" class="color-999">{{$t('wallet.noloke')}}</el-checkbox>
    </div>
  </div>
</template>

<script>
export default {
  components: {
  },
  data() {
    return {
      checkWallet: true,
    }
  },
  created() {
  },
  mounted() {
  },
  methods: {
    handleToWallet() {
      localStorage.setItem('checkWallet', this.checkWallet ? 1 : 0);
      this.$emit('listenWalletClose', false);
    },
    handleToScatter() {
      location.href = 'https://chrome.google.com/webstore/detail/scatter/ammjpmhgckkpcamddpolhchgomcojkle';
    },
  },
}
</script>

<style scoped lang="scss">
.scatter{
  text-align: center;
  padding-bottom: 8px;
  margin-top: -10px;
  color: #777;

  .tip{
    padding: 6px;

    .btn{
      width: 60%;
      font-weight: normal;
    }
  }

  .what{
    overflow: hidden;
    width: 58%;
    margin: 0px auto;

    /deep/ .el-checkbox__label {
      padding-left: 5px;
    }
  }

  .mr200{
    margin-right: 20%;
  }

  .blue{
    color: cornflowerblue;
  }

  .color-999 {
    color: #999;
  }
}
</style>
